package com.situ.mall.service;

import com.situ.mall.entity.Category;
import com.situ.mall.entity.CategoryCount;
import com.situ.mall.entity.Result;

import java.util.List;

public interface ICategoryService {
	/**
	 * 查询顶级分类，就是parent_id=0
	 * @return
	 */
	public List<Category> selectTopCategoryList();

	public List<Category> selectSecondCategoryByTopCategoryId(Integer topCategoryId);

	public List<Category> selectSecondCategoryList();

	public List<CategoryCount> getCategoryCount();

	public boolean insert(Category category);

	public Result selectByPage(Integer page, Integer limit);

	public boolean deleteByPrimaryKey(int id);

	public boolean deleteAll(Integer[] ids);

	public Category getUpdateCategory(Integer cateId);

	public boolean update(Category category);

	public int getTotalCountByCategoryId(Integer categoryId);

	public int getTotalCountByName(String name);


	
}
